import 'package:flutter_base_framework/interfaces/i_http_config.dart';
import 'package:flutter_base_framework/interfaces/i_res_config.dart';

class BaseLibrary {
  BaseLibrary._();
  ///是否是debug模式
  static bool _isDebug = true;

  static bool get isDebug => _isDebug;

  // http 配置
  static late IHttpConfig _httpConfig;

  static IHttpConfig get httpConfig => _httpConfig;

  // 分页属性和状态布局配置
  static late IResConfig _resConfig;
  static IResConfig get resConfig => _resConfig;

  static Future<void> init({
    required bool isDebug,
    required IHttpConfig httpConfig,
    required IResConfig resConfig,
  }) async {
    _isDebug = isDebug;
    _httpConfig = httpConfig;
    _resConfig = resConfig;
  }
}
